<div class="col-md-10 col-md-offset-1">
	<?PHP
	/* display message saved in session if any */
	echo $this->Session->flash();

	
	$toUserID = $this->Session->read('toUser');
	?>
	
	<h1 class="col-sm-offset-2">Nachricht schreiben:</h1>
		<?php echo $this->Form->create('Message', array('role' => 'form', 'class' => 'form-horizontal')); ?>
		<div class="form-group">
		<?php 
			echo $this->Form->input('toUser',array(
				'class' => 'form-control',
				'label' => false,
				'value' => $toUserID,
				'type' => 'hidden'
			));
		?>
		</div>
		<div class="form-group">
		<?php 
			echo $this->Form->label('subject', 'Betreff', 'col-sm-2 control-label');
			echo $this->Form->input('subject',array(
				'class' => 'form-control',
				'label' => false,
				'div' => 'input text required col-sm-7'
			));
		?>
		</div>
		<div class="form-group">
		<?PHP
			echo $this->Form->label('message', 'Nachricht', 'col-sm-2 control-label');
			echo $this->Form->input('message',array(
				'class' => 'form-control',
				'label' => false,
				'cols' => 50,
				'rows' => 10,
				'div' => 'input text required col-sm-7'
			));
		?>
		</div>
		<div class="col-sm-offset-2">
		<?php echo $this->Form->end(__('Abschicken')); ?>
		</div>
</div>